for (key in foo) {
    doSomething(key);
}
